﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="BankTeller.BankTellerModule.CustomerHeaderView"
    Height="85" Width="239" HorizontalAlignment="Stretch" x:Name="userControl" >
	<UserControl.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="..\..\BankTellerStyles.xaml"/>
			</ResourceDictionary.MergedDictionaries>
			<Storyboard x:Key="Timeline1">
				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="{x:Null}" Storyboard.TargetProperty="(UIElement.Opacity)">
					<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
					<SplineDoubleKeyFrame KeyTime="00:00:01" Value="1"/>
				</DoubleAnimationUsingKeyFrames>
			</Storyboard>
		</ResourceDictionary>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Timeline1}"/>
		</EventTrigger>
	</UserControl.Triggers>
    
	<Grid><Grid.RowDefinitions>
            <RowDefinition />
        </Grid.RowDefinitions><Grid.ColumnDefinitions>
            <ColumnDefinition />
    </Grid.ColumnDefinitions>
	<Border Style="{DynamicResource BorderStyle}" x:Name="DetailsBodyBorder" BorderThickness="1,0,1,1" CornerRadius="10,10,10,10" Height="85" Margin="0,0,1,0">
		<Border.Background>
			<LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
				<GradientStop Color="#FF555555" Offset="0"/>
				<GradientStop Color="#FF1C1C1C" Offset="1"/>
			</LinearGradientBrush>
		</Border.Background>
	</Border>
    <Label Height="Auto" HorizontalAlignment="Left" Margin="2.37,3,0,0" Name="label1" VerticalAlignment="Top" Width="Auto" RenderTransformOrigin="0.5,0.5" Content="Customer ID:"/>
    <Label HorizontalAlignment="Left" Margin="2.37,0,0,0" Name="label2" Width="Auto" Content="First Name:"  VerticalAlignment="Center"  />
    <Label Height="Auto" HorizontalAlignment="Left" Margin="2.37,0,0,8" Name="label3" VerticalAlignment="Bottom" Width="Auto" Content="Last Name:"/>
    <TextBox Height="Auto" Margin="88,7,3,0" Name="txtCustomerID" VerticalAlignment="Top" IsEnabled="True" IsReadOnly="True" Text="{Binding Path=ID}" HorizontalAlignment="Left" Width="140"/>
    <TextBox IsEnabled="True" Margin="88,0,11,0"  Name="txtFirstName" IsReadOnly="True" Text="{Binding Path=FirstName}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="140"/>
	<TextBox Height="Auto" IsEnabled="True" Margin="88,0,11,8" VerticalAlignment="Bottom" Name="txtLastName" IsReadOnly="True" Text="{Binding Path=LastName}" HorizontalAlignment="Left" Width="140"/>
  </Grid>
</UserControl>

